"""
根据传入的名称以及config构建adjust处理类
"""
from adjust.base_adjust import BaseAdjust


class AdjustFactory:
    @classmethod
    def create_service(cls, config):
        service = None
        if config["name"] == "base_adjust":
            service = BaseAdjust(config)

        if not service:
            print("init adjust service %s failed " % config["name"])
        return service

